HipAudioFormatsDecoder

Undocumented in source.

Members

Functions

channelConversion
bool channelConversion(ubyte[] data, ubyte from, ubyte to)
Undocumented in source. Be warned that the author may not have intended to support it.
decode
bool decode(ubyte[] data, HipAudioEncoding encoding, HipAudioType type, void delegate(in ubyte[]) onSuccess, void delegate() onFailure)

Will completely decode all the data. Returns if the decode was successful. The decoded data can be retrieved by calling getClipData()

dispose
void dispose()
Undocumented in source. Be warned that the author may not have intended to support it.
getAudioConfig
AudioConfig getAudioConfig()
Undocumented in source. Be warned that the author may not have intended to support it.
getClipData
ubyte[] getClipData()
Undocumented in source. Be warned that the author may not have intended to support it.
resample
bool resample(ubyte[] data, HipAudioType type, uint outputSampleRate, uint outputChannels, void delegate(in ubyte[]) onSuccess, void delegate() )
Undocumented in source. Be warned that the author may not have intended to support it.
startDecoding
uint startDecoding(ubyte[] data, ubyte[] outputDecodedData, uint chunkSize, HipAudioEncoding encoding)
Undocumented in source. Be warned that the author may not have intended to support it.
updateDecoding
uint updateDecoding(ubyte[] outputDecodedData)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

chunkBuffer
float[] chunkBuffer;

Intermediary buffer where the decoded buffer will be put.

chunkSize
uint chunkSize;

Probably this will be deprecated

decodedBuffer
float[] decodedBuffer;

This can hold the entire audio buffer or only enough for playing

Inherited Members

From AHipAudioDecoder

sampleRate
float sampleRate;
Undocumented in source.
channels
int channels;
Undocumented in source.
duration
float duration;
Undocumented in source.
clipSize
size_t clipSize;
Undocumented in source.
getClipChannels
ubyte getClipChannels()
Undocumented in source. Be warned that the author may not have intended to support it.
getClipSize
size_t getClipSize()
Undocumented in source. Be warned that the author may not have intended to support it.
getDuration
float getDuration()
Undocumented in source. Be warned that the author may not have intended to support it.
getSamplerate
uint getSamplerate()
Undocumented in source. Be warned that the author may not have intended to support it.
getAudioConfig
AudioConfig getAudioConfig()
Undocumented in source. Be warned that the author may not have intended to support it.
resample
bool resample(ubyte[] data, HipAudioType type, uint outputSampleRate, uint outputChannels)
Undocumented in source. Be warned that the author may not have intended to support it.
channelConversion
bool channelConversion(ubyte[] data, ubyte from, ubyte to)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta